home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.0 KB | 32 lines | [TEXT/GEOL] |
- Item 2094962 21-Feb-91 13:41PST
-
- From: TSD Encore, The Software Dept,PRT
-
- To: CPLUS.DEV$ C++ Interest List--Developers
-
- Item forwarded by ALCABES to CPLUS.APPLE$
-
- ------------------------------------------------------------------------------
-
- Sub: Ellipses
-
- Attn: CPlus Dev
- SentBy: Peter Marx
- Date:
- 2/20/91
- Time:
- 12:10 PM
- Subject:Ellipses
- Recently, Keith A Esau wrote:
-
- "To get around these probelms, use the macros/functions defined in stdarg.h
- that are designed for stepping through the argument list."
-
- But I don't think it's quite that easy. You have to be aware of the promotion
- that occurs (or doesn't occur) on a particular machine when parameters are
- pushed in preparation for the function call. For example, if you pass a float
- to a routine in Apple's MPW C, you retrieve it with "va_arg(p, extended)",
- since it was promoted from float to extended for the call. Similarly for char
- becoming int, etc.
-
-